package com.sxfq.loansupermarket.backsystem.modular.theTest.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.SearchTestingInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TestQuestionsInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TheTestInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.UserForTestInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;

/**
 * 考試中服务
 *
 * @author py
 * @Date 2018年2月4日23:05:54
 */
public interface ITestingService {

    /**
     * 分页获取考试数据列表
     *
     * @param page
     * @param searchInfo
     * @return
     */
    List<TestQuestionsInfo> selectPageListByQueryGetMap(Page<TestQuestionsInfo> page, SearchTestingInfo searchInfo);

    List<UserForTestInfo> selectPageListgetScore(@Param("theTestId") String theTestId, @Param("userId") String userId);

    void changeScore(@Param("userId") int userId, @Param("testScores") Double testScores) throws Exception;

    TheTestInfo testGenerate(String theTestId);

    UserForTestInfo selectOneById(String id);

    List<TestQuestionsInfo> getList(String theTestId, Integer userId);

    List<TestQuestionsInfo> getErrorList(Integer userId,String titleType);

    List<TestQuestionsInfo> getReciteList(String titleType);

    UserForTestInfo getReciteCurrentPage(Integer userId);

}
